<p id="notice"><%= notice %></p>

<p>
  <strong>Name:</strong>
  <%= @doing.name %>
</p>

<p>
  <strong>Cover:</strong>
  <% case @doing.position %>
  <% when "广告" %>
    <%= image_tag @doing.cover.url %>
  <% when "视频" %>
    <%= image_tag @doing.cover.url(:video) %>
  <% else %>
    <%= image_tag @doing.cover(:small) %>
  <% end %>
  
</p>

<p>
  <strong>位置:</strong>
  <%= @doing.position %>
</p>

<% if @doing.video.present? and @doing.video_type.present? %>
<p>
  <strong>视频:</strong>
	 	<video class="index_s at_cl_vedio video-js vjs-default-skin"
					  controls preload="auto" width="421" height="480"
					  data-setup='{"example_option":true}'>
		 	<source src="<%= @doing.video %>" type='video/mp4' />
	</video>
</p>
<% end %>

<% if @doing.src %>
<p>
  <strong>链接:</strong>
  <%= @doing.src %>
</p>
<% end %>

<% if @doing.x %>
  <p>
    <strong>黑框水平位置:</strong>
    <%= @doing.x %>px
  </p>
<% end %>
<% if @doing.y %>
  <p>
    <strong>黑框垂直位置:</strong>
    <%= @doing.y %>px
  </p>
<% end %>
<% if @doing.width %>
  <p>
    <strong>黑框宽度:</strong>
    <%= @doing.width %>px
  </p>
<% end %>
<% if @doing.height %>
  <p>
    <strong>黑框高度:</strong>
    <%= @doing.height %>px
  </p>
<% end %>




<%= link_to 'Edit', edit_admin_doing_path(@doing) %> |
<%= link_to 'Back', admin_doings_path %>
